package com.xx.happychatboot.serve.user.controller;


import com.xx.happychatboot.base.vo.response.ResponseDate;
import com.xx.happychatboot.serve.user.domain.entity.SysUser;
import com.xx.happychatboot.serve.user.service.ISysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author xiaoXuan
 * @since 2024-12-10
 */
@Controller
public class SysUserController {
    @Autowired
    private ISysUserService sysUserService;

    @PostMapping("/register")
    @ResponseBody
    public ResponseDate register(@RequestBody SysUser user) {
        return sysUserService.register(user);
    }
}

